package com.klun.designMode.flyweight;

import java.util.LinkedList;
import java.util.concurrent.locks.ReentrantLock;

public class Client {
    public static void main(String[] args) {

        FlyweightFactory factory = new FlyweightFactory();

        Flyweight fly = factory.factory(new Character('a'));
        fly.operation("First Call");

        fly = factory.factory(new Character('b'));
        fly.operation("Second Call");

        fly = factory.factory(new Character('a'));
        fly.operation("Third Call");

    }
}
